let KEY_USER = "user";
let KEY_ACCOUNT = "account";
let KEY_IDENTITY = "identity";

function setUserInfo(data) {
	sessionStorage.setItem(KEY_USER, JSON.stringify(data));
}

function getUserInfo() {
	return JSON.parse(sessionStorage.getItem(KEY_USER));
}

function setAccount(data) {
	sessionStorage.setItem(KEY_ACCOUNT, data);
}

function getAccount() {
	return sessionStorage.getItem(KEY_ACCOUNT);
}

function setIdentity(data) {
	sessionStorage.setItem(KEY_IDENTITY, data);
}

function getIdentity() {
	return sessionStorage.getItem(KEY_IDENTITY);
}